package com.guoxin.chapter4.reentrantreadwritelock.readwritelockbegin3;

public class Run {
	public static void main(String[] args) {
		Service service = new Service();
		new Thread("B") {
			public void run() {
				service.write();
			};
		}.start();

		new Thread("A") {
			public void run() {
				service.read();
			};
		}.start();
	}
}
